import type { Mapping, Option } from "@/components/ProFrom/ProFrom.vue";

import { useGlobalStore } from "@/stores";
const { dictionary } = useGlobalStore();

export const queryFormMap: Mapping[] = [
  { label: "巡检时间", type: "date", prop: "inspectionDate" },
];

export const editFormMap = [
  { label: "台站名称", type: "input", prop: "stName" },
  { label: "台站地址", type: "input", prop: "stAddress" },
  { label: "维护人员", type: "input", prop: "maintainMem" },
  { label: "联系方式", type: "input", prop: "phone" },
  {
    label: "台站运行状态",
    type: "radio",
    prop: "stStatus",
    options: dictionary.stStatus,
  },
  { label: "巡检时间", type: "date", prop: "inspectionDate" },
].map((e) => ({ ...e, required: true })) as Mapping[];
